.custom-multiselect {
    position: relative;
    width: 100%;
    /*font-family: Arial, sans-serif;*/
}

/* 禁用状态样式 */
.custom-multiselect.disabled {
    opacity: 0.7;
    pointer-events: none;
}

.multiselect-summary.disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    border-color: #ddd;
}

.multiselect-summary {
    padding: 0px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    background-color: #fff;
    /*min-height: 36px;*/
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #666;
}

.multiselect-summary::after {
    content: "▼";
    font-size: 12px;
    margin-left: 10px;
    transition: transform 0.2s;
}

.multiselect-summary.open::after {
    transform: rotate(180deg);
}
.multiselect-summary.placeholder {
    color: #999;
}

.multiselect-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    min-height: 20px;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
    margin-top: 5px;
}

.multiselect-option {
    padding: 8px 12px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.multiselect-option:hover {
    background-color: #f5f5f5;
}

.multiselect-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.multiselect-label {
    position: relative;
    padding-left: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    min-height: 18px;
}

.multiselect-custom-checkbox {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 16px;
    width: 16px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.multiselect-option {
    padding: 8px 12px;
    display: flex;
    align-items: center;
    cursor: pointer;
    line-height: 1.5;
}

.multiselect-checkbox:checked ~ .multiselect-custom-checkbox {
    background-color: #2196F3;
    border-color: #2196F3;
}

.multiselect-custom-checkbox:after {
    content: "";
    position: absolute;
    display: none;
    left: 4px;
    top: 1px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.multiselect-checkbox:disabled ~ .multiselect-custom-checkbox {
    background-color: #e9e9e9;
    cursor: not-allowed;
}

.multiselect-custom-checkbox:after {
    content: "";
    position: absolute;
    display: none;
}

.multiselect-checkbox:checked ~ .multiselect-custom-checkbox:after {
    display: block;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}